package com.sanqi.weixin.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sanqi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sanqi.common.core.domain.BaseEntity;

/**
 * 企业微信群对象 wx_chat
 * 
 * @author duanyong
 * @date 2025-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("wx_chat")
public class WxChat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 群编码 */
    @Excel(name = "群编码")
    @TableField(value="chat_id")
    private String chatId;

    /** 群名称 */
    @Excel(name = "群名称")
    @TableField(value="chat_name")
    private String chatName;

    /** 群主 */
    @Excel(name = "群主")
    @TableField(value="chat_owner")
    private String chatOwner;

    /** 类型 */
    @Excel(name = "类型")
    @TableField(value="chat_type")
    private String chatType;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setChatId(String chatId) 
    {
        this.chatId = chatId;
    }

    public String getChatId() 
    {
        return chatId;
    }

    public void setChatName(String chatName) 
    {
        this.chatName = chatName;
    }

    public String getChatName() 
    {
        return chatName;
    }

    public void setChatOwner(String chatOwner) 
    {
        this.chatOwner = chatOwner;
    }

    public String getChatOwner() 
    {
        return chatOwner;
    }

    public void setChatType(String chatType) 
    {
        this.chatType = chatType;
    }

    public String getChatType() 
    {
        return chatType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("chatId", getChatId())
            .append("chatName", getChatName())
            .append("chatOwner", getChatOwner())
            .append("chatType", getChatType())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
